﻿using HeadFirest._08.IteratorAndComponet._01.Menus;
using HeadFirest._08.IteratorAndComponet._01.Waitresses;
using System;

namespace HeadFirest._08.IteratorAndComponet._01
{
    class Program
    {
        static void Main(string[] args)
        {
            Menucomponent pancakeHourseMenu = new Menu("PANCAKE HOUSE MENU", "breakfast");
            Menucomponent dinerMenu = new Menu("DINER MENU", "Lunch");
            Menucomponent cafeMenu = new Menu("CAFE MENU", "DINER");
            Menucomponent dessertMenu = new Menu("DESSERT MENU", "Dessert of course");

            Menucomponent allMenus = new Menu("All MENUS","All menus combined");
            allMenus.Add(pancakeHourseMenu);
            allMenus.Add(dinerMenu);
            allMenus.Add(cafeMenu);

            dinerMenu.Add(new MenuItem("Apple pie", "Apple pie with flakey crust,topped with vanilla ice cream", true, 1.59));
            dinerMenu.Add(new MenuItem("Apple pie1", "Apple1 pie with flakey crust,topped with vanilla ice cream", false, 2.59));
            cafeMenu.Add(new MenuItem("cafeMenu pie1", "cafeMenu pie with flakey crust,topped with vanilla ice cream", true, 3.59));
            cafeMenu.Add(new MenuItem("cafeMenu pie1", "cafeMenu pie with flakey crust,topped with vanilla ice cream", false, 4.59));
            dessertMenu.Add(new MenuItem("dessertMenu pie1", "dessertMenu pie with flakey crust,topped with vanilla ice cream", true, 5.59));
            dessertMenu.Add(new MenuItem("dessertMenu pie1", "dessertMenu pie with flakey crust,topped with vanilla ice cream", true, 5.59));

            Waitress waitress = new Waitress(allMenus);
            waitress.PrintMenu();

            Console.ReadLine();
        }
    }
}
